package com.example.springcloud.alibaba.service;

import com.example.springcloud.entities.CommonResult;
import com.example.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2024-02-13
 * Time: 20:58
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult paymentSQL(Long id) {
        return new CommonResult(444, "服务降级返回,没有该流水信息", new Payment(id, "errorSerial......"));
    }
}
